Time Context

To activate an assesslet for specific time context, click the three dots icon next to the Time context field.

Time context dialog

Choose between the following time context:

Always

The assesslet will be executed in the whole test time context.

Regular expression 

The assesslet is only executed when the entered regular expression is fulfilled. The expression matches time intervals based on boolean conditions. The default expression [true] represents an "always" time context.

For more information, see Time and Context Intervals - Time Dependent Regular Expression - regexp.
Example

The following 2 signals are to be compared.

Signals to be compared

A signal comparison assesslet is executed just when the light intensity value is above 80.

Entered time dependent regular expression

Therefore, light_intensity_variable > 80 entered as regular expression will execute the assesslet five times.

Testlet context

The assesslet is only executed when one of the selected testlets is executed. Select testlets in the Project view and use a drag and drop operation.

Time context of testlets

If a selected testlet is not part of the test case, the assesslet will not be executed. If the selected testlet is part of the test case but not reached, the assesslet result will be INCONCLUSIVE.

Report as Failed if there is no matching time context

Select to tag the assesslet as failed when no matching time context was found. In the test report as well as in the Build Progress dialog the message "No time context interval found" is display.

Requirements linked to such an assesslet will automatically also be marked as failed.

Example

When you add the testlet outside_the_path, the assesslet is not executed. No result and no warning will be displayed.

Assesslet will not be executed

When you add the testlet not_reachable, the assesslet gets the result INCONCLUSIVE.

Since TPT Version 7 you can also add referenced testlets to the testlet context. This means that if a referencing testlet is in the testlet context list the assesslet will not be executed on all referenced testlets but only on those added to the list.

Step context

The assesslet is only executed when one of the selected steps is executed. Select steps in the step list and use a drag and drop operation. If a selected step is not part of the test case, the assesslet will not be executed. If the selected step is part of the test case but not reached, the assesslet result will be INCONCLUSIVE.